import request from "@/request"; 

type TUserParams = {
    loginname:string;
    password:string;
};

interface IUserRegister{
    tel:string;
    password:string;
};

export const userLogin = (params:TUserParams)=>{
    return request.post("/user/login",params);
};

export const msgCode=(params:{tel:string})=>{
    return request.post("/user/dosendmsgcode",params);
}

export const userRegister=(params:IUserRegister)=>{
    return request.post("/user/dofinishregister",params);
}